﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using 类和结构;

namespace C_高级编程_第11版_
{
    internal class Program
    {
        static void Main(string[] args)
        {
            var myCustomerClass1 = new PhoneCustomer();
            var myCustomerClass2 = new PhoneCustomer();
            var myCustomerStruct1 = new PhoneCustomerStruct();
            var myCustomerStruct2 = new PhoneCustomerStruct();
            Console.WriteLine("myCustomerClass1:" + myCustomerClass1.CustomerID);
            myCustomerClass2.CustomerID = 22;
            Console.WriteLine("myCustomerClass1:" + myCustomerClass1.CustomerID);
            Console.WriteLine("myCustomerClass2:" + myCustomerClass2.CustomerID);
            Console.WriteLine("-------------");
            Console.WriteLine("myCustomerStruct1:" + myCustomerStruct1.CustomerID);
            myCustomerStruct2.CustomerID = 55;
            Console.WriteLine("myCustomerStruct1:" + myCustomerStruct1.CustomerID);
            Console.WriteLine("myCustomerStruct2:" + myCustomerStruct2.CustomerID);

            Console.WriteLine("-------------");
        
            
           Console.ReadKey();
        }
    }
}
